package com.mxm.mirai.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
@TableName("pay")
public class Pay implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableId("userid")
    private Integer userid;
    //付款后生成的唯一流水号
    @TableId("payno")
    private String payno;
    //提交的付款人的唯一标识
    @TableId("payid")
    private String payid;
    //实际付款金额
    private String money;
    //提交订单的原价
    private String price;
    //自定义参数
    private String param;
    //0：成功 -1:失败 -2:参数有误
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPayno() {
        return payno;
    }

    public void setPayno(String payno) {
        this.payno = payno;
    }

    public String getPayid() {
        return payid;
    }

    public void setPayid(String payid) {
        this.payid = payid;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Pay{" +
                "id=" + id +
                ", userid=" + userid +
                ", payno='" + payno + '\'' +
                ", payid='" + payid + '\'' +
                ", money='" + money + '\'' +
                ", price='" + price + '\'' +
                ", param='" + param + '\'' +
                ", status=" + status +
                '}';
    }
}